<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true" ng-click="cancel()">&times;</button>
    <h3>新增角色权限信息</h3>
</div>
<div class="modal-body">
    <div class="row">
        <div class="col-md-12">
            <form class="form-horizontal" role="form">
                <div class="form-group">
                    <label for="cid" class="col-md-3 control-label">角色名称：</label>
                    <div class="col-md-4"><input type="text" id="name" name="name" class="form-control" ng-model="entity.name"></div>
                </div>
                <div class="divider divider-dashed divider-sm pull-in"></div>
                <div class="form-group">
                    <label for="cid" class="col-md-3 control-label">是否启用：</label>
                    <span class="ui-select" style="width:80px;">
                        <select id="status" name="status" ng-model="entity.status" ng-options="opt.k as opt.t for opt in opts.statusOpts"></select>
                    </span>
                </div>
                <div class="divider divider-dashed divider-sm pull-in"></div>
                <div class="form-group">
                    <label for="cid" class="col-md-3 control-label">权限列表：</label>
                    <div class="col-md-8" ng-bind-html="entity.menus|trust"></div>
                </div>
                <div class="divider divider-dashed divider-sm pull-in"></div>
            </form>
        </div>
    </div>
</div>
<div class="modal-footer">
    <span class="md-raised btn-w-xs md-primary md-button md-default-theme pull-right btn-box-margin" ng-click="submit()">
        <span class="ng-scope">提 交</span>
    </span>
    <span class="md-raised btn-w-xs md-button md-default-theme pull-right btn-box-margin" ng-click="cancel()">
        <span class="ng-scope">关 闭</span>
    </span>
</div>
